package tech.aistar.mapper;

import jdk.nashorn.internal.ir.annotations.Ignore;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.aistar.pojo.Items;

import java.util.List;

public interface ItemsMapper {

    @Select("select * from items")
    List<Items> findAll();

    @Select("select * from items where id=#{value}")
    Items findById(Integer id);

    @Insert("")
    void insert(Items items);

    @Update("")
    void update(Items items);

    @Delete("delete from items where id=#{value}")
    void delById(Integer id);

}
